<template>
  <div>
    <p>
      <span v-if="isShow">{{ item }}</span>
      <input v-else type="text" text="text" />
      <button @click="t">删除</button><br />
    </p>
  </div>
</template>

<script>
export default {
  props: ["text", "a", "item"],
  data() {
    return {};
  },
  methods: {
    t() {
      this.$emit("click1", "a");
    },
  },
};
</script>
<style scoped>
</style>
